/*

 */
package com.insigma.business.qrcode.common.vo;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;


@Getter
public class Page<T extends BaseVO> implements Serializable {

    
    private int pageNo = 1;

    
    private int pageSize = 20;

    
    @Setter
    private long totalCount = -1;
    @Setter
    private Integer allCount;
    @Setter
    private Object header;

    @Setter
    private Object extra;

    
    private long currentTS = System.currentTimeMillis();

    
    @Setter
    private List<T> voList;

    public Page(){}

    public Page(final int pageNo) {
        this.pageNo = pageNo;
    }

    public Page(final int pageNo, final int pageSize) {
        this.pageSize = pageSize;
        this.pageNo = pageNo;
    }

    public Page(final int pageNo, final int pageSize, final long totalCount){
        this.pageSize = pageSize;
        this.pageNo = pageNo;
        this.totalCount = totalCount;
    }

}
